<!--  블로그면 class="icon_blog" 카페면 class="icon_cafe" -->
<#if data??>
	<#list data as item>
		<li class="sch_item">
			<div class="sch_itemImageDiv">
				<img class="sch_itemImage" src="${item.imgUrl}" 
					style="FLOAT:none;CLEAR:none" actualwidth="48" exif="{}" border="0" hspace="1" vspace="1" width="48" />
				<dl class="sch_itemDesc">
					<dt>${item.title}</dt>
					<dd>${item.description}</dd>			
				</dl>
				<img class="btn_plus" src="${webmvc.url.img}/btn_plus_n.png" 
					onclick="showDetail('${item.title}','${item.imgUrl}','${item.link}','${item.description}','${item.pubDate}','${item.target}','${item.author}');">
				<div class="img_tag_icon <#if item.target=='blog'>icon_blog<#else>icon_cafe</#if>">
				<!--  블로그면 class="icon_blog" 카페면 class="icon_cafe" -->
				</div>
			</div>
		</li>
	</#list>
</#if>

<script type="text/javascript">
function showDetail(title, imgUrl, link, description, pubDate, target, author){
	location.href = "${webmvc.url.main}/detail?"
			+ "title=" + encodeURIComponent(title)
			+ "&imgUrl=" + imgUrl
			+ "&link=" + link
			+ "&description=" + encodeURIComponent(description)
			+ "&pubDate=" + pubDate
			+ "&target=" + target
			+ "&author=" + encodeURIComponent(author);
}
</script>